package com.es.www.kyl.constant;

import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Author by michangtao
 * @Date 2023/3/16 14:30
 * @Description
 */
@Getter
@NoArgsConstructor
public enum BusinessResultEnum {
    DUPLICATE_CODE_REQUEST("验证码已经发送过，请勿重复请求"),
    CREATE_SMS_CODE_ERROR( "create sms code error"),
    LOGIN_SMS_CODE_ERROR("短信验证码输入有误"),
    USER_NOT_EXIST( "用户不存在"),
    USER_PERMISSION_DENIED("用户没有权限,请联系管理员"),
    TOKEN_NOT_EXIST("401", "登录已过期，请重新登录"),
    WX_BIND_ERROR("微信绑定失败，请稍后重试"),
    NOT_EXIST_WRONG_LIST("201", "不存在错题")


    ;

    private String code;
    private String message;

    BusinessResultEnum(String message) {
        this.message = message;
    }


    BusinessResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
